<!DOCTYPE HTML>
<html>
<head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <base href="http://clickmobile.com/"></base>
  <link rel="stylesheet" type="text/css" href="<?php echo $stylePath.'css/bootstrap.min.css' ;?>">
  <link rel="stylesheet" type="text/css" href="<?php echo $stylePath.'css/loginstyle.css';?>">
</head>
<body>
  <div class="container">       
    <div class="login-form well">
      <form method="post">
        <legend>Đăng nhập quản trị</legend>
        <div class="control-group">
          <label class="control-label" for="username">Tên đăng nhập:</label>
          <div class="controls">
            <input type="text" name="username" id="username" onKeyPress="return disableEnterKey(event)">
          </div>
        </div>
        <div class="control-group">
          <label class="control-label" for="password">Mật khẩu:</label>
          <div class="controls">
            <input type="password" name="password" id="password" onKeyPress="return disableEnterKey(event)">
          </div>
        </div>
  <?php 
    if (isset($error))
    {
      echo '<div class="alert alert-block alert-error fade in">
              <button type="button" class="close" data-dismiss="alert">×</button>
              <strong>Lỗi! </strong>'.$error.'
          </div>';
    }
  ?>                        
        <div class="form-actions">
          <button type="submit" class="btn btn-primary">Đăng nhập</button>
          <button type="reset" class="btn">Làm lại</button>
        </div>        
      </form>
    </div>
  </div>
<script type="text/javascript" src="<?php echo $stylePath.'js/jquery.min.js'; ?>"></script>
<script type="text/javascript" src="<?php echo $stylePath.'js/bootstrap.min.js';?>"></script> 
<script type="text/javascript">
  function disableEnterKey(e)
  {
       var key;
       if(window.event)
            key = window.event.keyCode;    
       else
            key = e.which;     
       if(key == 13)
            return false;
       else
            return true;
  } 
</script>
</body>
</html>
